<html>
<head>
<title>添加可安装的服务</title>
{% include "systy.html" %}
</head>
<body>
{% ifnotequal username None%}
{% include "head6.html" %}
<div class="taskadd_div">
    <div class="location_div">位置：系统管理 >> 添加安装管理 </div>
    <form action="" method="post">
        <div class="input-group">
            <span class="input-group-addon">&nbsp;&nbsp;&nbsp;服务名</span><input type="text" name="sname"" class="taskadd_taskname form-control">
        </div></br>
        <div class="input-group">
            <span class="input-group-addon">脚本路径</span><input type="text" name="spath" class="taskadd_taskname form-control">
        </div></br>
        <div class="config_div">
            <button type="submit" class="btn btn-primary btn-sm hostadd_button"> 添 加 </button>
        </div>
    </form>

    <div class="mytable ms_addinstall_div1">
        <table>
            <thead>
                <tr>
                    <td width="150"> 服务名</td>
                    <td width="">脚本路径</td>
                    <td width="70">操作</td>
                </tr>
            </thead>
            {% for i in server_list %}
            <tr>
                <td>{{ i.sname }}</td>
                <td>{{ i.spath }}</td>
                <td class="taskinfo_td host_buttom"><a class="btn btn-danger btn-xs" href="/installdel/{{ i.id }}.html" onClick="delcfm()">删除</a></td>
            </tr>
            {% endfor %}
        </table>
    </div>
</div>
{% else %}
你无权访问，请<a href="/login.html">登陆!</a>
{% endifnotequal%}
</body>
</html>
